package com.fusion.core.file.filedatabase;

/**
 * @author SwethaShivakumar 
 * Project: fusion
 * Date: Mar 12, 2009
 * URL: http://fusionwiki.co.cc
 * Mail Me At: shiva@fusionproject.co.cc
 */
public class ExtensionFileType extends FileTypeIdentifier {
    private String extensions[];

    public ExtensionFileType(String[] extensions) {
        this.extensions = extensions;
    }

    public boolean matches(String s) {
        for(String e : extensions) if (s.toLowerCase().endsWith(e)) return true;
        return false;
    }
}
